package com.digitalchina.lxnsy.sy.login;

import android.view.Window;
import android.view.WindowManager;
import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.activity.old.MainActivity;
import com.digitalchina.lxnsy.base.BaseHtmlActivity;
import com.digitalchina.lxnsy.sy.all.ForgetPasswordActivity;
import com.digitalchina.lxnsy.toolkit.GotoUtil;
import com.digitalchina.lxnsy.xml.RongCloudXML;
import com.digitalchina.lxnsy.xml.UserXML;

import org.json.JSONException;
import org.json.JSONObject;

public class CheckIdentityActivity extends BaseHtmlActivity {
    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);
        loadUrl("checkIdentity");
         hideActionBar();
    }

    @Override
    public void rightOnClick(){


    }

    @Override
    protected void setNoTitle() {
        super.setNoTitle();

        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }
    public class JsApi {


        @JavascriptInterface
        public void registered(Object msg) {
            finish();
            go(RegisteredActivity.class);

        }

    }
}
